package com.xupypr.surgery.client.objects;

import java.util.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

public class BlogEntry implements IsSerializable {
	
	private Long id;
	
	private Date created;
	
	private Date lastModified;
	
	private String caption;
	
	private String text;
	
	private String cuttedText;

	private Boolean publicated = false;
	
	public Boolean getPublicated() {		
		return (publicated==null)?false:publicated;
	}

	public void setPublicated(Boolean publicated) {
		this.publicated = publicated;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getCreated() {		
		return (created==null)?new Date(0):created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getLastModified() {
		return lastModified;
	}

	public void setLastModified(Date lastModified) {
		this.lastModified = lastModified;
	}

	public String getCaption() {
		return caption;
	}

	public void setCaption(String caption) {
		this.caption = caption;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getCuttedText() {
		return cuttedText;
	}

	public void setCuttedText(String cuttedText) {
		this.cuttedText = cuttedText;
	}	
}
